#ifndef SNAKE_H
#define SNAKE_H
#define MAX_LENGTH 64 
enum direction
{
  UP,LEFT,RIGHT,DOWN
};

class Snake
{
private:

public:
  Snake();
  int x[MAX_LENGTH];
  int y[MAX_LENGTH];
  int length;                /*蛇的节数*/
  direction dir;           /*蛇移动方向*/
  bool alive;                /* 蛇的生命,0活着,1死亡*/
  void move();
  void eat();
};

#endif




